<%@ page language="java"  pageEncoding="utf-8"%>
<%@ page import="com.ejoysoft.wlanyz.business.Ac,java.util.Iterator,java.util.Set,java.util.ArrayList,java.util.Map,com.ejoysoft.wlanyz.business.Index,com.ejoysoft.wlanyz.business.Ap,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException,com.ejoysoft.common.exception.IdObjectException" %>
<%@page import="java.util.Vector"%>
<%@ include file="../include/jsp/head.jsp"%>
<%
if(!globa.userSession.hasRight("10025"))
      throw new NoRightException("用户不具备操作该功能模块的权限，请与系统管理员联系！");
%>

<%
try{
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    Index obj1=new Index(globa);
	String strId = ParamUtil.getString(request,"strId","");
	if(strId.equals(""))
    	throw new IdObjectException("请求处理的信息id为空！或者已经不存在");
    String where="where strId='"+strId+"'";
    Index obj0=obj1.show(where);
    if(obj0==null){
        globa.closeCon();
        throw new IdObjectException("请求处理的信息id='"+strId+"'对象为空！","请检查该信息的相关信息");
    
    }
%> 

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../scripts/jsframework.js"></script>
<script language="JavaScript" src="../js/jquery-1.4.1.min.js"></script>
<script src="../scripts/jquery-1.4.1.min.js"></script>
<script src="../include/js/chkFrm.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
body {
	background-color: #f2f8ff;
}
.sel1{ width:160px;}
.STYLE1 {color: #FF0000}
a{ font-size:12px; color:#214263; text-decoration:none; }
a:hover{ font-size:12px; color:#ffffff; background-color:#ff9900; text-decoration:none;display:block;} 
</style>

<script language="javascript">

     function chkFrm() {
     if(trim(frm.strTaskType.value)=="") {
       alert("请选择测试类型名称！！！")
       frm.strTaskType.focus();
       return false;
        }
         if(trim(frm.strTestProject.value)=="") {
       alert("请选择测试项目名称！！！")
       frm.strTestProject.focus();
       return false;
        }
         if(trim(frm.strTestIndicator.value)=="") {
       alert("请选择测试指标名称！！！")
       frm.strTestIndicator.focus();
       return false;
        }
         if(trim(frm.strIndicatorValue.value)=="") {
       alert("请输入指标值！！！")
       frm.strIndicatorValue.focus();
       return false;
        }
         if(trim(frm.strLessorGreat.value)=="") {
       alert("请选择高低位！！！")
       frm.strLessorGreat.focus();
       return false;
        }          
  	frm.submit();         
    }




</script>
</head>

<body>

<form name="frm" method=post action="index_act.jsp"  >

<input type="hidden" name="<%=Constants.ACTION_TYPE%>" value="<%=Constants.UPDATE_STR%>"></input>
<input type="hidden" name=strId value="<%=strId%>">

<div class="lf_list">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="bottom" />&nbsp;<font size="2px">您现在所在的位置：</font><font color="#0e7cc9" size="2px">任务管理 </font><font size="2px">&gt; 测试指标管理</font><font size="2px">&gt; 更改测试指标</font></td>
  </tr>
</table>
<table id="tb" width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> <td class="listtit1"align="left">&nbsp; &nbsp;<font size="2px"> 更改测试指标</font></td>
</tr>
 
  <tr>
    <td bgcolor="#FFFFFF" class="listd" style="border-left:1px solid #dddddd;border-right:1px solid #dddddd;">&nbsp;
   
    <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">        
     <tr>
       <td >
       <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 0px 2px 0px;">
       <tr>
	     <td width="4%" align="left" >
	     </td>

		</tr>
       </table></td></tr>

          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
             <td width="35%" height="30" align="right" class="left_txt2" ><font size="2px">测试类型名称 ：</font></td>
             <td width="3%">&nbsp;</td>
            <td width="40%" height="30">
            
            <select id="strTaskType" name="strTaskType"   style="width:215px"  class="input_box"  >
            <option value="<%=obj0.getStrTaskType() %>"><%=obj0.getStrTaskType() %></option>
              <%
                  //从全局变量中读取参数类型
                  String[] testTypes = {"巡检测试","验收测试","随机现场测试"};
                  for (int i = 0; i < testTypes.length; i++) {
              %>
                <option value="<%=testTypes[i]%>"><%=testTypes[i]%></option>
              <%
                  }
              %>                
         </select></td>
         </tr>
         <tr>
             <td width="35%" height="30" align="right" class="left_txt2" ><font size="2px">测试项目名称 ：</font></td>
             <td width="3%">&nbsp;</td>
            <td width="40%" height="30">
            
            <select id="strTestProject" name="strTestProject"   style="width:215px"  class="input_box"  >
            <option value="<%=obj0.getStrTestProject() %>"><%=obj0.getStrTestProject() %></option>
              <%
                  //从全局变量中读取参数类型
                  String[] projectTypes = {"信号强度测试","AP关联测试","漫游测试","隔离测试","WEB认证","PEAP认证","PING测试","FTP测试","HTTP测试"};
                   for (int i = 0; i < projectTypes.length; i++) {
              %>
                <option value="<%=projectTypes[i]%>"><%=projectTypes[i]%></option>
              <%
                  }
              %>                
         </select></td>
         </tr>
         <tr>
             <td width="35%" height="30" align="right" class="left_txt2" ><font size="2px">测试指标名称 ：</font></td>
             <td width="3%">&nbsp;</td>
            <td width="40%" height="30">
            
            <select id="strTestIndicator" name="strTestIndicator"   style="width:215px"  class="input_box"   >
            <option value="<%=obj0.getStrTestIndicator() %>"><%=obj0.getStrTestIndicator() %></option>
              <%
                  //从全局变量中读取参数类型
                  String[] indexTypes = {"AP关联成功率","WEB认证成功率","WEB下线成功率","PEAP认证成功率","PEAP下线成功率","HTTP请求成功率","PING成功率","FTP上行成功率","FTP下行成功率","用户隔离成功率","用户漫成功率","AP关联时延","WEB认证时延","WEB下线时延","PEAP认证时延","HTTP响应时延","PING平均时延","FTP上行速率","FTP下行速率","信号强度"};
                  for (int i = 0; i < indexTypes.length; i++) {
              %>
                <option value="<%=indexTypes[i]%>"><%=indexTypes[i]%></option>
              <%
                  }
              %>                
         </select></td>
         </tr>
        
            <tr>
               <td width="35%" height="30" align="right" class="left_txt2"><font size="2px">指标值：</font></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><input type="text"  class="ipt" name="strIndicatorValue" id="strIndicatorValue" value="<%=obj0.getStrIndicatorValue() %>"/>
                </td> 
            </tr>
             <tr>
               <td width="35%" height="30" align="right" class="left_txt2"></td>
                <td width="3%">&nbsp;</td>
                <td width="40%" align="left"><font size="2px" color="red">注：默认成功率单位为"%",时延单位为"s",速率单位为"kb/s",信号强度单位为"dbm"</font>
                </td> 
            </tr>
            <tr>
             <td width="35%" height="30" align="right" class="left_txt2" ><font size="2px">高低位 ：</font></td>
             <td width="3%">&nbsp;</td>
            <td width="40%" height="30">
            
            <select id="strLessorGreat" name="strLessorGreat"   style="width:215px"  class="input_box"   >
            <option value="<%=obj0.getStrLessorGreat() %>"><%=obj0.numtostring(obj0.getStrLessorGreat()) %></option>
              <%
                  //从全局变量中读取参数类型
                  String[] greatTypes = {"小于","小于等于","等于","大于","大于等于"};
                  for (int i = 0; i < greatTypes.length; i++) {
                  int num=obj1.strtonum(greatTypes[i]);
                   %>
             
               <option value="<%=num%>"><%=greatTypes[i]%></option>
               
              <%
              
              }
             
              %>
                
                             
         </select></td>
         </tr>
            <tr>
              <td height="30" colspan="3">&nbsp;</td>
            </tr>
            </table>
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td width="3%" >&nbsp; <br></td>
              <td width="40%" height="20" align="right"> <input name="B1" type="button"   value="确  定" onclick="chkFrm()"  class="ipt2" /></td>
               <td width="3%" >&nbsp; <br></td>
               <td width="6%" height="20" > <input type="button" name="b_reset"    value="重 置"  onclick="frm.reset();" style="cursor:hand" class="ipt2"/></td>
               <td width="3%" >&nbsp; <br></td>
               <td width = "6%"><input type="button"  onclick="window.location.href='index_list.jsp';" value="返 回" class="ipt2" style="cursor:hand"/></td>
               
               <td height="30" class="left_txt2">&nbsp;</td>               
            </tr> 
            </table>
            </td>
          </tr>
        </table>
  
</td>
  </tr>
 
</table>
 </div>
<p><br />
</p>
    </form>
 
</body>
</html>
<%}catch(Exception e){e.printStackTrace();} %>
<%@ include file="../include/jsp/footer.jsp"%>
